package com.example.auth.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.example.db.annotations.ID;
import com.example.db.annotations.Table;
import com.example.db.annotations.TableField;


import java.util.Date;

/**
 * @Classname UserModel
 * @Description TODO
 * @Date 2022/5/29 14:51
 * @Created by XiongXiong
 * @Author: X.I.O
 */
@Table("sys_user")
public class UserModel {

  /**
   * id
   */
  @ID
  private Integer id;
  /**
   * 账号
   */
  @TableField("username")
  private String username;
  /**
   * 密码
   */
  @TableField("password")
  private String password;
  /**
   * 手机号
   */
  @TableField("phone")
  private String phone;
  /**
   * 创建时间
   */
  @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  @TableField("createdate")
  private Date createdate;


  /**
   * 过期时间
   */
  @TableField("expiredate")
  private Date expiredate;

  /**
   * 是否被锁定
   */
  @TableField("islocked")
  private boolean islocked;

  /**
   * 性别
   */
  @TableField("sex")
  private Integer sex;


  /**
   * 工作
   */
  @TableField("work")
  private String work;

  /**
   * 邮箱
   */
  @TableField("email")
  private String email;

  /**
   * 真实姓名
   */
  @TableField("realname")
  private String realname;

  /**
   * 备注
   */
  @TableField("remark")
  private String remark;

  /**
   * 身份证
   */
  @TableField("idcard")
  private String idcard;

  /**
   * 用户部门
   */
  @TableField("deptId")
  private Integer deptId;

  private String deptName;

  public String getDeptName() {
    return deptName;
  }

  public void setDeptName(String deptName) {
    this.deptName = deptName;
  }

  public Integer getDeptId() {
    return deptId;
  }

  public void setDeptId(Integer deptId) {
    this.deptId = deptId;
  }

  public String getIdcard() {
    return idcard;
  }

  public void setIdcard(String idcard) {
    this.idcard = idcard;
  }

  /**
   * 拓展字段1
   */
  private String Ext1;
  /**
   * 拓展字段2
   */
  private String Ext3;


  public Date getCreatedate() {
    return createdate;
  }

  public void setCreatedate(Date createdate) {
    this.createdate = createdate;
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getExt1() {
    return Ext1;
  }

  public void setExt1(String ext1) {
    Ext1 = ext1;
  }

  public String getExt3() {
    return Ext3;
  }

  public void setExt3(String ext3) {
    Ext3 = ext3;
  }



  public Date getExpiredate() {
    return expiredate;
  }

  public void setExpiredate(Date expiredate) {
    this.expiredate = expiredate;
  }

  public boolean isIslocked() {
    return islocked;
  }

  public void setIslocked(boolean islocked) {
    this.islocked = islocked;
  }

  public Integer getSex() {
    return sex;
  }

  public void setSex(Integer sex) {
    this.sex = sex;
  }

  public String getWork() {
    return work;
  }

  public void setWork(String work) {
    this.work = work;
  }

  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

  public String getRealname() {
    return realname;
  }

  public void setRealname(String realname) {
    this.realname = realname;
  }

  public String getRemark() {
    return remark;
  }

  public void setRemark(String remark) {
    this.remark = remark;
  }
}
